all: build

configure: .setup-config
	
.setup-config: pandocwiki.cabal
	runghc Setup.hs configure

build: configure 
	runghc Setup.hs build
	ln -s -f dist/build/pandocwiki/pandocwiki pandocwiki

install: build
	runghc Setup.hs install

clean:
	runghc Setup.hs clean

clear_state:
	rm -r pandocwiki_state
	rm -r pandocwiki_error.log

